package com.example.yin.service;

import com.example.yin.domain.Consumer;
import com.example.yin.domain.ResponseResult;
import com.example.yin.vo.LoginParamVo;
import com.example.yin.vo.R;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

public interface LoginService {

    public Object login(@RequestBody Consumer user);

    public ResponseResult loginFail();

    // 找回密码
    @PostMapping("findPassword")
    public R findPassword(@RequestBody LoginParamVo loginParamVo);


    public Object logout();
}
